//
//  _BaseCert.h
//  TestProject
//
//  Created by 武侠 on 2022/2/18.
//  Copyright © 2022 zhulong. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface _BaseCert : NSObject

@property (nonatomic, strong) NSData *data;

- (nullable instancetype)initWithData:(NSData *)data;

// 解析证书：子类重写
- (void)loadCertData;

// 是否有效
+ (BOOL)isValid:(NSData *)data;

@end

NS_ASSUME_NONNULL_END
